<include file="__PUBLIC__/_header" />
<body>
<div class="navbar navbar-default" id="navbar">
    <script type="text/javascript">
        try{
            ace.settings.check('navbar' , 'fixed')
        }catch(e){

        }
    </script>
    <div class="navbar-container" id="navbar-container">
        <div class="navbar-header pull-left">
            <a href="#" class="navbar-brand">
                <small>
                    <i class="icon-leaf"></i>
                    配置中心后台管理系统
                </small>
            </a><!-- /.brand -->
        </div><!-- /.navbar-header -->

        <div class="navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">
                <li class="light-blue">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <img class="nav-user-photo" src="assets/avatars/avatar2.png" alt="User's Photo" />
						<span class="user-info">
							<small>欢迎光临,</small>
							shenglu.li						</span>

                        <i class="icon-caret-down"></i>
                    </a>

                    <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                        <li>
                            <a href="?a=admin&m=logout">
                                <i class="icon-off"></i>
                                退出
                            </a>
                        </li>
                    </ul>
                </li>
            </ul><!-- /.ace-nav -->
        </div><!-- /.navbar-header -->
    </div><!-- /.container -->
</div>

<div class="main-container" id="main-container">
<script type="text/javascript">
    try{ace.settings.check('main-container' , 'fixed')}catch(e){}
</script>

<div class="main-container-inner">
<a class="menu-toggler" id="menu-toggler" href="#">
    <span class="menu-text"></span>
</a>

<div class="sidebar" id="sidebar">
    <script type="text/javascript">
        try{ ace.settings.check('sidebar' , 'fixed') }catch(e){ }
    </script>

    <include file="__PUBLIC__/_nav" />
    <!-- /.nav-list -->

    <div class="sidebar-collapse" id="sidebar-collapse">
        <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
    </div>

    <script type="text/javascript">
        try{
            ace.settings.check('sidebar' , 'collapsed')
        }catch(e){

        }
    </script>
</div>
<div class="main-content">
<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
        try{
            ace.settings.check('breadcrumbs' , 'fixed')
        }catch(e){
        }
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="index.php">Home</a>
        </li>

        <li class="active"> 系统管理 </li>

        <li class="active"> 日志	</li>
        <li class="active"> 心跳日志 </li>
    </ul><!-- .breadcrumb -->
</div>

<div class="page-content">
<div class="page-header">
    <h1>
        日志
        <small>
            <i class="icon-double-angle-right"></i>
            心跳日志
        </small>
    </h1>
</div><!-- /.page-header -->

<div class="row">
<div class="col-xs-12">
<div class="table-header">
    以下为配置中心所有客户端心跳状态
</div>

<div class="table-responsive">
    <table id="sample-table-2" class="table table-striped table-bordered table-hover">
        <thead>
        <tr>
            <th>服务器(client)IP</th>
            <th>所属应用</th>
            <th>当前状态</th>
            <th><i class="icon-time bigger-110 hidden-480"></i>更新时间</th>
        </tr>
        </thead>

        <tbody>
            <volist name="data" id="vo">
                <tr>
                    <td>{$vo.ip}</td>
                    <td>{$vo.domain}</td>
                    <td>
                        <if condition="$vo['status'] eq 0">
                            <span class="label label-sm label-success">正常</span>
                            <else/>
                            <span class="label label-sm label-danger">异常</span>
                        </if>
                    </td>
                    <td>{$vo.update_time}</td>
                </tr>
            </volist>
        </tbody>
    </table>
</div>
</div>
</div>
</div>
</div><!-- /.main-content -->
<!-- basic scripts -->

<!--[if !IE]> -->

<script type="text/javascript">
    window.jQuery || document.write("<script src='__APP_SKIN__js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>

<!-- <![endif]-->

<!--[if IE]>
<script type="text/javascript">
    window.jQuery || document.write("<script src='__APP_SKIN__js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->

<script type="text/javascript">
    if("ontouchend" in document) document.write("<script src='__APP_SKIN__js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script src="__APP_SKIN__js/bootstrap.min.js"></script>
<script src="__APP_SKIN__js/typeahead-bs2.min.js"></script>

<!-- page specific plugin scripts -->

<script src="__APP_SKIN__js/jquery.dataTables.min.js"></script>
<script src="__APP_SKIN__js/jquery.dataTables.bootstrap.js"></script>

<!-- ace scripts -->

<script src="__APP_SKIN__js/ace-elements.min.js"></script>
<script src="__APP_SKIN__js/ace.min.js"></script>

<!-- inline scripts related to this page -->

<script type="text/javascript">
    jQuery(function($) {
        var oTable1 = $('#sample-table-2').dataTable( {
            "aaSorting": [[3, "desc"]],
            "aoColumns": [
                null,null, null,null
            ],
            "oLanguage": {
                "sLengthMenu": "每页显示 _MENU_ 条记录",
                "sZeroRecords": "抱歉， 没有找到",
                "sInfo": "从 _START_ 到 _END_ /共 _TOTAL_ 条数据",
                "sInfoEmpty": "没有数据",
                "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
                "oPaginate": {
                    "sFirst": "首页",
                    "sPrevious": "前一页",
                    "sNext": "后一页",
                    "sLast": "尾页"
                },
                "sZeroRecords": "没有检索到数据"
            } } );
    })
</script>
</body>
</html>